package com.xiaoming.backend.entity.db.example;

import java.util.ArrayList;
import java.util.List;

public class WastePOExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WastePOExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWasteIdIsNull() {
            addCriterion("waste_id is null");
            return (Criteria) this;
        }

        public Criteria andWasteIdIsNotNull() {
            addCriterion("waste_id is not null");
            return (Criteria) this;
        }

        public Criteria andWasteIdEqualTo(Long value) {
            addCriterion("waste_id =", value, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteIdNotEqualTo(Long value) {
            addCriterion("waste_id <>", value, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteIdGreaterThan(Long value) {
            addCriterion("waste_id >", value, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteIdGreaterThanOrEqualTo(Long value) {
            addCriterion("waste_id >=", value, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteIdLessThan(Long value) {
            addCriterion("waste_id <", value, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteIdLessThanOrEqualTo(Long value) {
            addCriterion("waste_id <=", value, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteIdIn(List<Long> values) {
            addCriterion("waste_id in", values, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteIdNotIn(List<Long> values) {
            addCriterion("waste_id not in", values, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteIdBetween(Long value1, Long value2) {
            addCriterion("waste_id between", value1, value2, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteIdNotBetween(Long value1, Long value2) {
            addCriterion("waste_id not between", value1, value2, "wasteId");
            return (Criteria) this;
        }

        public Criteria andWasteTypeIsNull() {
            addCriterion("waste_type is null");
            return (Criteria) this;
        }

        public Criteria andWasteTypeIsNotNull() {
            addCriterion("waste_type is not null");
            return (Criteria) this;
        }

        public Criteria andWasteTypeEqualTo(Long value) {
            addCriterion("waste_type =", value, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWasteTypeNotEqualTo(Long value) {
            addCriterion("waste_type <>", value, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWasteTypeGreaterThan(Long value) {
            addCriterion("waste_type >", value, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWasteTypeGreaterThanOrEqualTo(Long value) {
            addCriterion("waste_type >=", value, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWasteTypeLessThan(Long value) {
            addCriterion("waste_type <", value, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWasteTypeLessThanOrEqualTo(Long value) {
            addCriterion("waste_type <=", value, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWasteTypeIn(List<Long> values) {
            addCriterion("waste_type in", values, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWasteTypeNotIn(List<Long> values) {
            addCriterion("waste_type not in", values, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWasteTypeBetween(Long value1, Long value2) {
            addCriterion("waste_type between", value1, value2, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWasteTypeNotBetween(Long value1, Long value2) {
            addCriterion("waste_type not between", value1, value2, "wasteType");
            return (Criteria) this;
        }

        public Criteria andWeightIsNull() {
            addCriterion("weight is null");
            return (Criteria) this;
        }

        public Criteria andWeightIsNotNull() {
            addCriterion("weight is not null");
            return (Criteria) this;
        }

        public Criteria andWeightEqualTo(String value) {
            addCriterion("weight =", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualTo(String value) {
            addCriterion("weight <>", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThan(String value) {
            addCriterion("weight >", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualTo(String value) {
            addCriterion("weight >=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThan(String value) {
            addCriterion("weight <", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualTo(String value) {
            addCriterion("weight <=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLike(String value) {
            addCriterion("weight like", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotLike(String value) {
            addCriterion("weight not like", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightIn(List<String> values) {
            addCriterion("weight in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotIn(List<String> values) {
            addCriterion("weight not in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightBetween(String value1, String value2) {
            addCriterion("weight between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotBetween(String value1, String value2) {
            addCriterion("weight not between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodIsNull() {
            addCriterion("disposal_method is null");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodIsNotNull() {
            addCriterion("disposal_method is not null");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodEqualTo(Long value) {
            addCriterion("disposal_method =", value, "disposalMethod");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodNotEqualTo(Long value) {
            addCriterion("disposal_method <>", value, "disposalMethod");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodGreaterThan(Long value) {
            addCriterion("disposal_method >", value, "disposalMethod");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodGreaterThanOrEqualTo(Long value) {
            addCriterion("disposal_method >=", value, "disposalMethod");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodLessThan(Long value) {
            addCriterion("disposal_method <", value, "disposalMethod");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodLessThanOrEqualTo(Long value) {
            addCriterion("disposal_method <=", value, "disposalMethod");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodIn(List<Long> values) {
            addCriterion("disposal_method in", values, "disposalMethod");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodNotIn(List<Long> values) {
            addCriterion("disposal_method not in", values, "disposalMethod");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodBetween(Long value1, Long value2) {
            addCriterion("disposal_method between", value1, value2, "disposalMethod");
            return (Criteria) this;
        }

        public Criteria andDisposalMethodNotBetween(Long value1, Long value2) {
            addCriterion("disposal_method not between", value1, value2, "disposalMethod");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}